def discountCoupon(input):
    print("exe discountCoupon",input)
    return input * 0.8


def newComerCoupon(input):
    print("exe newComerCoupon",input)
    return input * 0.1


def priceBreakDiscountCoupon(input):
    print("exe priceBreakDiscountCoupon",input)
    if input > 9:
        return input - 1;
    return input;

map = {
1: discountCoupon,
2: newComerCoupon,
3: priceBreakDiscountCoupon
}

type = 3;
method = map[type];
data = method(10);
print(data)
